<div class="content">
	<form class="form-horizontal" name="groupForm" ng-submit="vm.submitForm(groupForm.$valid)" novalidate>
		<div class="ibox">
	        <div class="ibox-title">
	            <h5>小组信息</h5>
	        </div>
	        <div class="ibox-content">
                <div class="form-group">
                    <label class="col-lg-3 control-label">所属科目 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <select name="course" class="form-control" ng-model="vm.group.course" ng-options="item.course_name for item in vm.courselist" required>  
                            <option value="">请选择科目</option>  
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">所属分组 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <select name="groupalias" class="form-control" ng-model="vm.group.groupalias" ng-options="item.alias for item in vm.groupaliaslist" required>  
                            <option value="">请选择分组</option>  
                        </select>
                    </div>
                </div>
	            <div class="form-group">
                    <label class="col-lg-3 control-label">小组名称 <b class="text-danger">*</b></label>
                    <div class="col-lg-3">
                        <input type="text" name="groupTitle" class="form-control" placeholder="请输入小组名称" ng-model="vm.group.group_title" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">小组简介 &nbsp</label>
                    <div class="col-lg-3">
                        <textarea name="groupIntro" class="form-control" placeholder="请输入小组简介" ng-model="vm.group.group_intro" rows="4"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-3 col-lg-3">
                        <button type="button" class="btn btn-sm btn-default" ui-sref="dashboard.race.grouplist"><i class="fa fa-times"></i>取消</button>
                        <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save"></i>保存</button>
                        <button type="button" class="btn btn-sm btn-danger" ng-click="vm.deleteItems($state.params.group_id)" ng-if="$state.params.group_id"><i class="fa fa-trash-o"></i>删除</button>
                    </div>
                </div>
	        </div>
	    </div>
	</form>
</div>